/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAO;

import Negocio.Aluno;
import java.io.Serializable;
import java.util.Date;
import org.prevayler.Transaction;

/**
 *
 * @author Jeferson
 */
public class AltAluno implements Transaction, Serializable{
    
    private Aluno aluno1;
    private Aluno aluno2;

    public AltAluno(Aluno aluno1, Aluno aluno2) {
        this.aluno1 = aluno1;
        this.aluno2 = aluno2;
    }

    @Override
    public void executeOn(Object o, Date date) {
        ((Data)o).altAluno(aluno1, aluno2);
    }
}
